#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include "error.h"
#include <QMessageBox>
#include <QFileDialog>
#include <fileoperation.h>
#include <QProgressBar>
//#include "fileoperation.cpp"

namespace Ui {
class MainWindow;
}

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    explicit MainWindow(QWidget *parent = nullptr);
    ~MainWindow();

private slots:
    void on_pushButton_decode_clicked();

    void on_pushButton_choose_clicked();

    void on_pushButton_cancel_clicked();

    void on_pushButton_chooseFile_clicked();

    void startProgress(double progress);

private:
    Ui::MainWindow *ui;
    Error *passwordError;
    QProgressBar *progressBar;
};

#endif // MAINWINDOW_H
